package com.wenan.ui.controls.charts.expand
{
	import com.amcharts.chartClasses.AmGraph;
	
	public class AmGraphExpand extends AmGraph
	{
		public function AmGraphExpand()
		{
			super();
		}
		
		public function set color(value:uint):void
		{
			this.setStyle("color", value);
		}
		
		public function set lineAlpha(value:Number):void
		{
			this.setStyle("lineAlpha", value);
		}
		
		public function set fillAlphas(array:Array):void
		{
			this.setStyle("fillAlphas", array);
		}
		
		/**
		 * type决定报表的类型。1为尖锐线
		 * 2平滑线
		 * 3柱状图
		 * 4梯状图
		 * 默认是柱状图
		 * */
		public function set chartType(type:Number):void
		{
			if (type)
			{
				if (type == 1)
				{
					this.type = "line";
				}else if (type == 2)
				{
					this.type = "smoothedLine";
				} else if (type == 3)
				{
					this.type = "column";
				}else if (type == 4)
				{
					this.type = "step";
				}
			} else {
				this.type = "column";
			}
		}
		
	}
}